x11: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Jul 2020 17:52:53 +0000 (13:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Jul 2020 22:19:32 +0000 (18:19 -0400)
Don't leak atoms when we're storing the clipboard.

gdk/x11/gdkclipboard-x11.c

index bbfdfc6b4ba7cc71af168bd3a9323010cf4f1520..bd46f24a15640d7c8ed62a11ce67144a57ac6d6c 100644 (file)
@@ -653,6 +653,8 @@ gdk_x11_clipboard_store_async (GdkClipboard        *clipboard,
       GDK_DISPLAY_NOTE (display, CLIPBOARD,
                 g_printerr ("%s: X error during ConvertSelection() while storing selection: %d\n", cb->selection, error));
     }
+
+  g_free (atoms);
 }
 
 static gboolean